<?php

namespace App\Department\Controllers;

use App\Services\PatentLibraryService;
use Encore\Admin\Controllers\AdminController;
use Encore\Admin\Grid;
use Encore\Admin\Grid\Tools\BatchActions;
use Encore\Admin\Layout\Content;
use App\Repositories\PatentRepository;

class PatentLibraryController extends AdminController
{
    protected $title = '本校专利库';
    public $repository;
    public $service;

    public function __construct(PatentRepository $repository, PatentLibraryService $service)
    {
        $this->repository = $repository;
        $this->service = $service;
    }

    public function index(Content $content)
    {
//        return $content
//            ->title($this->title)
//            ->description(trans('admin.list'))
//            ->body($this->grid());
    }
    /**
     * Make a grid builder.
     *
     * @return Grid
     */
//    protected function grid()
//    {
//        $grid = $this->repository->adminGrid();
//        $grid = $this->service->gridColumn($grid);
//        $grid->batchActions(function (BatchActions $actions) {
//            $actions->disableDeleteAndHodeSelectAll();
//        });
//        $grid->disableActions();
//        $grid->disableExport();
//        return $grid;
//    }

}
